namespace Backoffice.Domain.Entities.App
{
    /// <summary>
    /// 文章-标签 关联（多对多）
    /// </summary>
    public class AppArticleTag : EntityBase
    {
        public Guid ArticleId { get; private set; }
        public Guid TagId     { get; private set; }

        public virtual AppArticle Article { get; private set; } = null!;
        public virtual AppTag       Tag     { get; private set; } = null!;

        private AppArticleTag() { }

        public AppArticleTag(AppArticle article, AppTag tag)
        {
            ArticleId = article.Id;
            TagId     = tag.Id;
            Article   = article;
            Tag       = tag;
        }
    }

}